package com.aaa.service;

import com.aaa.dao.BookDao;
import com.aaa.entity.Book;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BookService implements BookDao {
    @Resource
    BookDao bookDao;
    @Override
    public List<Book> select3(Integer pageCode, Integer pageSize, Book book) {
        Integer a=(pageCode-1)*pageSize;
        return bookDao.select3(a, pageSize, book);
    }
}
